# 51job
from time import sleep

from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('https://login.51job.com/login.php?loginway=0&isjump=0&lang=c&from_domain=i&url=')
driver.maximize_window()

driver.find_element(By.ID,'loginname').send_keys('19849507509')
driver.find_element(By.ID,'password').send_keys('tan094721')
driver.find_element(By.ID,'isread_em').click()

sleep(2)
driver.find_element(By.XPATH,'//*[@id="login_btn_withPwd"]').click()

sleep(2)
#登录成功

sleep(2)
# actionChain = ActionChains(driver)
driver.find_element(By.LINK_TEXT,'职位搜索').click()
sleep(3)

driver.find_element(By.ID, 'keywordInput').send_keys('软件测试')
driver.find_element(By.ID, 'search_btn').click()
driver.find_element(By.XPATH,'/html/body/div[2]/div[3]/div/div[1]/div[1]/span[1]/em').click()